package kd.bos.openapi.sdk.response.save;

import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * @Deacription 请求响应Dto
 * @author johnz
 * @date 2022年4月6日
 */
@Getter
@Setter
@Accessors(chain = true)
public class ResponseSaveDto {
    // data内容
    private SaveDataDto data;
    // errorCode
    private String errorCode;
    // 消息
    private String message;
    // 是否成功状态
    private Boolean status;

    public static ResponseSaveDto create(){
        ResponseSaveDto requestQuery = new ResponseSaveDto();
        return requestQuery;
    }

    public ResponseSaveDto of(SaveDataDto data) {
        this.data = data;
        return this;
    }
}
